﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using eCitizen.eAlerts.Utilities;
using eCitizen.eAlerts.Constants;
using eCitizen.DataContracts;
using eCitizen.DataAccess;

namespace eCitizen.eAlerts.BusinessService
{
    public abstract class ServiceBase
    {
        protected static SftpConfiguration _configuration;
        protected static ServiceInfo _currentServiceInfo;
        protected static ServiceHelper _serviceHelper;

        public ServiceBase()
        {
            if(_configuration == null) _configuration = new SftpConfiguration();
            if(_currentServiceInfo == null) _currentServiceInfo = new ServiceInfo();
            if(_serviceHelper == null) _serviceHelper = new ServiceHelper();
        }

        public static SftpConfiguration CurrentConfiguration
        { get { return _configuration; } set { _configuration = value; } }
        public static ServiceInfo CurrentServiceInfo { get { return _currentServiceInfo; } set { _currentServiceInfo = value; } }
        public static ServiceHelper CurrentServiceHelper { get { return _serviceHelper; } set { _serviceHelper = value; } }


    }
}
